package com.zmn.brs.starter.annotation;

import com.zmn.brs.starter.support.OperateRecordConfigureSelector;
import org.springframework.context.annotation.AdviceMode;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * 类描述：开启风控
 *
 * @author xujie
 * @since 2021/03/11 16:29
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import({OperateRecordConfigureSelector.class})
public @interface EnableBusinessRisk {

    /**
     * 扫描标识
     */
    String tenant();

    /**
     * 代理模式
     */
    AdviceMode mode() default AdviceMode.PROXY;
}
